package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.model.Backstage;
import com.zjitc.model.Pay;
import com.zjitc.model.Product;
import com.zjitc.model.User;
import java.util.List;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/5/31 15:01
 * @description:
 */
public interface BackstageService {
  ServerResponse<User> login(@RequestParam("backstagename") String backstagename, @RequestParam("backstagepassword") String backstagepassword);
  List<Product> backstageshowProduct();
  void backstagedelete(Integer id);
  Product updatebackstage(Integer id);

  Product findproductById(Integer id);

  void updateback(Product product);

  List<User> findAllUser();

  User findUserById(Integer id);

  void userEdit(User user);

  void userdelete(Integer id);

  List<Pay> findMyPay();

  void paydelete(Integer id);
}
